/*
 * Copyright (C), 2015-2019
 * FileName: HiController
 * Author:   zhao
 * Date:     2019/4/20 22:03
 * Description: 控制器
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.lizhaoblog.scl.pro005hystrix.controller;

import com.lizhaoblog.scl.pro005hystrix.service.PointHiService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈一句话功能简述〉<br>
 * 〈控制器〉
 *
 * @author zhao
 * @date 2019/4/20 22:03
 * @since 1.0.0
 */
@RestController
public class HiController {

    @Autowired
    PointHiService pointHiService;

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    public String sayHi(@RequestParam String name) {
        return pointHiService.sayHiFromClientOne(name);
    }
}